package com.zyg.apart.mapper;

import com.zyg.apart.model.Role;
import com.zyg.apart.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper {
    User selectByName(String username);

    Role getRoleByName(String username);

    Map<String,Object> getUserById(Integer id);

    List<Map<String, Object>> getAllUsers();

    int addUser(User user);

    int editUser(User user);

    int delUserById(Integer id);
}
